package com.luban.service;

import com.luban.anotation.Random;
import com.luban.entity.User;
import org.springframework.stereotype.Component;

@Component
public class UserService {

	private User user;

	public UserService() {
	}

	//	public UserService(@Qualifier(value = "user0") User user11) {
//		this.user = user11;
//	}

//	public UserService(@Genre(value = "user0") User user11) {
//		this.user = user11;
//	}
	public UserService(@Random User user11) {
		this.user = user11;
	}

	public void test() {
		System.out.println(user.getName());

	}
}
